package com.ruoyi.production.mapper.fertilizer;


import com.ruoyi.production.domain.fertilizer.FertilizerPurchaseApply;

import java.util.List;

/**
 * 化肥购买申请Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-11
 */
public interface FertilizerPurchaseApplyMapper
{
    /**
     * 查询化肥购买申请
     *
     * @param fertilizerPurchaseApplyId 化肥购买申请ID
     * @return 化肥购买申请
     */
    public FertilizerPurchaseApply selectFertilizerPurchaseApplyById(Long fertilizerPurchaseApplyId);

    /**
     * 查询化肥购买申请列表
     *
     * @param fertilizerPurchaseApply 化肥购买申请
     * @return 化肥购买申请集合
     */
    public List<FertilizerPurchaseApply> selectFertilizerPurchaseApplyList(FertilizerPurchaseApply fertilizerPurchaseApply);

    /**
     * 新增化肥购买申请
     *
     * @param fertilizerPurchaseApply 化肥购买申请
     * @return 结果
     */
    public int insertFertilizerPurchaseApply(FertilizerPurchaseApply fertilizerPurchaseApply);

    /**
     * 修改化肥购买申请
     *
     * @param fertilizerPurchaseApply 化肥购买申请
     * @return 结果
     */
    public int updateFertilizerPurchaseApply(FertilizerPurchaseApply fertilizerPurchaseApply);

    /**
     * 删除化肥购买申请
     *
     * @param fertilizerPurchaseApplyId 化肥购买申请ID
     * @return 结果
     */
    public int deleteFertilizerPurchaseApplyById(Long fertilizerPurchaseApplyId);

    /**
     * 批量删除化肥购买申请
     *
     * @param fertilizerPurchaseApplyIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteFertilizerPurchaseApplyByIds(Long[] fertilizerPurchaseApplyIds);
}
